<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Maps</title>
	<script
		src="http://maps.google.com/maps/api/js?sensor=false"
		type="text/javascript"></script>
</h:head>
<h:body>
	<h:form>

		<p:growl
			id="messages"
			showDetail="true"
			life="2000" />

		<p:gmap
			center="41.381542, 2.122893"
			zoom="15"
			type="ROADMAP"
			style="width:600px;height:400px">

			<p:ajax
				event="stateChange"
				listener="#{mapBean.onStateChange}"
				update="messages" />
			<p:ajax
				event="pointSelect"
				listener="#{mapBean.onPointSelect}"
				update="messages" />

		</p:gmap>

		<p:feedReader
			value="http://feeds.reuters.com/reuters/INtopNews"
			var="feed">
			<h:outputText
				value="#{feed.title}"
				style="font-weight: bold" />
			<br />
			<h:outputText
				value="#{feed.description.value}"
				escape="false" />
			<p:separator />
		</p:feedReader>


	</h:form>
</h:body>
</html>
